<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<title>{$atcdetail['wfilm_title']}</title>
<link href="/fstsets/mobile/css/style.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/fstsets/mobile/font/iconfont.css">
<script type="text/javascript" src="/fstsets/mobile/js/jquery-1.9.1.min.js"></script>
<style type="text/css">
    .content-box h4{border-bottom: solid 1px #e52d2a; margin: 0px 12px; padding-bottom: 10px;}
</style>
</head>

<body>
    <p class="tishi">您已投票成功</p>
	<div class="w">
        <div class="video-box">
            {:W('Data/getvideo',array('str'=>$atcdetail['wfilm_videopath']))}
        </div>
        <div class="content-box">
            <h4>{$atcdetail['wfilm_title']}</h4>
            <p>{$atcdetail['wfilm_content']}</p>
        </div>
	</div>
	<!--footer-->
    <div class="footer2 clearfix" style="display: none;">
        <div class="divd-a fl clearfix">
            <a href="{:U('Wfilm/listvote', array('typeid' => 1))}"><i class="shortmovie  shortmovie-shouye1 footer2-icon"></i></a>
            <a><i class="shortmovie footer2-icon2 shortmovie-xingguang"></i><br/><div class="num b clearfix" id="num"><span>{$atcdetail.wfilm_votenum}</span><b>票</b></div></a>
            <a class="border-clear"><i class="shortmovie footer2-icon2 shortmovie-paixingbang"></i><br/><div class="b clearfix"><span>{$Think.get.pm}</span><b>名</b></div></a>
        </div>
        <div class="divd-b clearfix fl"><a class="in-vote-btn" actid="{$atcdetail.id}" num="{$atcdetail.wfilm_votenum}">投票结束</a></div>
    </div>
<!--foot over-->
<!--ready_box over-->
<script type="text/javascript">
    $(document).ready(function($) {
        function change_pcvideo_pro(){
            $("video").attr("width",'100%');
            $("video").attr("height",'200');
            var video_bgimg = $("video").attr("poster");
            $("video").removeAttr("poster");
            $("video").css({"background":"url("+video_bgimg+")",'background-size':'cover'});
        }
        window.onload = function(){
            change_pcvideo_pro();
        }


        var timesRun = 0;
        var interval = setInterval(function(){
        timesRun += 1;
        if(timesRun === 60){
        clearInterval(interval);
        }
        $(".tishi").fadeOut()
        }, 2000);
    });

    $(".in-vote-btn").click(function(){
		$(".tishi").html("投票已结束");
        /*var t = $(this);
        var articid = t.attr("actid");
        var numval  = $("#num span").html();
        $.ajax({
            type: 'POST',
            url: '__URL__/addVote',
            dataType:'JSON',
            data: {articid:articid,rand:Math.random()},
            success: function (data) {
                if(data.r==1){
                    $(".tishi").show();
                    $("#num span").html(parseInt(parseInt(numval)+1));
                    $(".tishi").html("投票成功");
                }else{
                    $(".tishi").show();
                    $(".tishi").html("不能投票超过3次,明天再来吧");
                }
            }
        });*/
    });

</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?996ff5636cc816a4703cb2156ef1796b";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
